{extend name="public:_base" /}
{block name="js"}

{include file="public/_validform"}
{load href="__STATIC__/admin/js/common.js" /}
{/block}
{block name="main"}
<form class="form form-horizontal" action="#" id="form" method="post">

    <div class="row cl">
        <label class="form-label col-xs-2 col-sm-2">
            {switch name="$data.type" }
            {case value="1" }发信给领导{/case}
            {case value="2"}心理咨询{/case}
            {case value="3"}法律咨询{/case}
            {/switch}{:lang('标题')}：</label>
        <div class="formControls col-xs-10 col-sm-10">
            {$data.title ?? ''}
        </div>

    </div>

    <div class="row cl">
        <label class="form-label col-xs-2 col-sm-2">{:lang('content')}：<br>{$data.create_time}</label>
        <div class="formControls col-xs-10 col-sm-10">
            {$data.center ?? ''}
        </div>
    </div>

    <div class="row cl">
        <div class="formControls col-xs-12 col-sm-12">
            回复
        </div>
    </div>

    {volist name="$list" id="vo"}
        {neq  name="$vo.adminname" value=""}
            <div class="row cl">
                <label class="form-label col-xs-2 col-sm-2">领导{$vo.adminname}：<br>{$vo.create_time|date="Y-m-d H:i:s",###}</label>
                <div class="formControls col-xs-10 col-sm-10">
                    {$vo.center ?? ''}
                </div>
            </div>
        {else /}
            <div class="row cl">
                <div class="form-label col-xs-10 col-sm-10">
                    {$vo.center ?? ''}
                </div>
                <label class="formControls col-xs-2 col-sm-2">：我<br>{$vo.create_time|date="Y-m-d H:i:s",###}</label>
            </div>
        {/neq}
    {/volist}


    <div class="row cl">
        <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>回复内容：</label>
        <div class="formControls col-xs-10 col-sm-10">
            <textarea name="center" cols="" rows="" class="input-text textarea" placeholder="说点什么...最少输入10个字符"
                      datatype="*" dragonfly="true"></textarea>
        </div>
    </div>

    <div class="row cl">
        <div class="col-xs-6 col-sm-6 col-xs-offset-4 col-sm-offset-2">
            <input class="btn radius btn-primary radius" type="submit" value="&nbsp;&nbsp;{:lang('save')}&nbsp;&nbsp;">
            <input class="btn radius btn-default radius" type="reset" value="&nbsp;&nbsp;{:lang('cancel')}&nbsp;&nbsp;">

        </div>
    </div>
</form>
{/block}
